package com.jade.store.wechat.biz.common;

/**
 * 固定常量值
 * User: jinya
 * Date: 2016/12/13
 * Time: 14:21
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
public class WxConstantUtil {

    public final static String cache_component_verify_ticket ="cache_component_verify_ticket";

    public final static String cache_component_access_token ="cache_component_access_token";

    public final static String cache_authorization_code ="cache_authorization_code";

    public final static String cache_wx_access_token ="cache_wx_access_token";//微信公众号Token
    //授权流程
    // 技术接口https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1453779503&token=74f1b3220b00c6b387a07b219f6ced8478f21b98&lang=zh_CN
    //2、获取第三方平台component_access_token
    public final static String api_component_access_token = "https://api.weixin.qq.com/cgi-bin/component/api_component_token";
    //3、获取预授权码pre_auth_code
    public final static String api_create_preauthcode = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=%s";
    //4、使用授权码换取公众号的接口调用凭据和授权信息
    public final static String api_query_auth = "https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=%s";
    //5、获取（刷新）授权公众号的接口调用凭据（令牌）
    public final static String api_authorizer_token = "https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=%s";
    //6、获取授权方的公众号帐号基本信息
    public final static String api_get_authorizer_info = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?component_access_token=%s";
    //7、获取授权方的选项设置信息
    public final static String api_get_authorizer_option = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option?component_access_token=%s";
    //8、设置授权方的选项信息
    public final static String api_set_authorizer_option = "https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option?component_access_token=%s";


    //代公众号发起网页授权
    //第一步：请求CODE
    public final static String api_oauth2_authorize = "https://open.weixin.qq.com/connect/oauth2/authorize";
    //第二步：通过code换取access_token
    public final static String api_oauth2_component = "https://api.weixin.qq.com/sns/oauth2/component/access_token?component_access_token=%s";


    //微信公众号管理   http://mp.weixin.qq.com/wiki/0/d0e07720fc711c02a3eab6ec33054804.html
    //用户管理
    public final static String api_auth_user = "https://api.weixin.qq.com/sns/oauth2/access_token?";

    //获取用户列表
     public final static String api_user_get = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=%s";
     public final static String api_user_info = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=%s";
     public final static String api_user_info_batchget = "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=%s";

    //账号管理
    public final static String api_qrcode_create = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=%s";
    //将一条长链接转成短链接。
    //主要使用场景： 开发者用于生成二维码的原链接（商品、支付二维码等）
    // 太长导致扫码速度和成功率下降，将原长链接通过此接口转成短链接再生成二维码将大大提升扫码速度和成功率。
    public final static String api_shorturl = "https://api.weixin.qq.com/cgi-bin/shorturl?access_token=%s";

    //微信菜单
    //创建菜单
    public final static String api_menu_create = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=%s";
    //获得菜单
    public final static String api_menu_get = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=%s";
    //删除菜单
    public final static String api_menu_delete = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=%s";
    //创建个性化菜单菜单
    public final static String api_menu_addconditional = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=%s";
    //删除个性化菜单菜单
    public final static String api_menu_delconditional = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token=%s";
    //测试个性化菜单匹配结果
    public final static String api_menu_trymatch = "https://api.weixin.qq.com/cgi-bin/menu/trymatch?access_token=%s";
    //获取自定义菜单配置接口
    public final static String api_menu_selfmenu_info = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token=%s";

    //消息管理
    //被动回复消息
    //高级群发接口
    //模板消息接口
    //1 设置所属行业
    public final static String api_set_industry = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=%s";
    //2 获取设置的行业信息
    public final static String api_get_industry = "https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=%s";
    //3 获得模板ID
    public final static String api_add_template = "https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=%s";
    //4 获取模板列表
    public final static String api_get_all_private_template = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=%s";
    //5 删除模板
    public final static String api_del_private_template = "https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=%s";
    //6 发送模板消息
    public final static String api_send_template = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s";
    //获取自动回复规则
    public final static String api_get_current_autoreply_info = "https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info?access_token=%s";

    //客服接口-发消息
    public final static String api_send_message_custom = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=%s";


    //JS-SDK  接口标准协议
    public final static String api_js_getticket = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=%s&type=jsapi";
}
